﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.Core.Model.SportBusiness
{
    /// <summary>
    /// 客户端日志记录表
    /// </summary>
    [Table("T_B_ClientLog")]
    public class ClientLog : Entity<Guid>
    {
        /// <summary>
        /// 赛事ID
        /// </summary>
        public Guid CompetitionId { get; set; }

        /// <summary>
        /// 赛事名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string CompetitionName { get; set; }

        /// <summary>
        /// 赛事项目ID
        /// </summary>
        public Guid CompetitionProjectId { get; set; }

        /// <summary>
        /// 赛事项目名称
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string CompetitionProjectName { get; set; }

        /// <summary>
        /// 场次ID
        /// </summary>
        public Guid EventsSessionId { get; set; }

        /// <summary>
        /// 场次名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string EventName { get; set; }

        /// <summary>
        /// 组名
        /// </summary> 
        [Required]
        [MaxLength(20)]
        public string GroupName { get; set; }

        /// <summary>
        /// 号牌
        /// </summary>
        public int? NoLocation { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>    
        [MaxLength(50)]
        public string EmployeeName { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid? EmployeeId { get; set; }

        /// <summary>
        /// 操作
        /// </summary>    
        [Required]
        [MaxLength(50)]
        public string Operation { get; set; }

        /// <summary>
        /// 操作人ID
        /// </summary>
        public Guid OperationUserId { get; set; }

        /// <summary>
        /// 操作人用户名
        /// </summary> 
        [Required]
        [MaxLength(20)]
        public string OperationName { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperationTime { get; set; }
    }
}
